package com.lagou.work.workthree;
/*
* 手机卡类
 * */
public class PhoneCard {

    //卡类型
    private String cardType;
    //卡号
    private String cardNo;
    //用户名
    private String userName;
    //密码
    private String password;
    //账户余额
    private double accountMoney;
    //通话时长(分钟)
    private int duration;
    //上网流量
    private int traffic;

    public PhoneCard() {
    }

    public PhoneCard(String cardType, String cardNo, String userName, String password, double accountMoney, int duration, int traffic) {
        setCardType(cardType);
        setCardNo(cardNo);
        setUserName(userName);
        setPassword(password);
        setAccountMoney(accountMoney);
        setDuration(duration);
        setTraffic(traffic);
    }

    public String getCardType() {
        return cardType;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public double getAccountMoney() {
        return accountMoney;
    }

    public void setAccountMoney(double accountMoney) {
        this.accountMoney = accountMoney;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public int getTraffic() {
        return traffic;
    }

    public void setTraffic(int traffic) {
        this.traffic = traffic;
    }

    public void show(){
        //System.out.println(getCardType());
        System.out.println("卡号:"+ getCardNo() +",用户名:" + getUserName() + ",账户余额:" + getAccountMoney());
    }
}
